package model.inventory;


import java.math.BigDecimal;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;


@Entity
@Table(name="mst_item_stok", schema="inventory")
public class ItemStok  implements java.io.Serializable {

    private ItemStokId id;
    private BigDecimal stok;

    public ItemStok() {
    }

    @EmbeddedId
    @AttributeOverrides( {
        @AttributeOverride(name="itemId", column=@Column(name="item_id", nullable=false) ), 
        @AttributeOverride(name="gudangId", column=@Column(name="gudang_id", nullable=false) ) } )
    public ItemStokId getId() {
        return this.id;
    }
    
    public void setId(ItemStokId id) {
        this.id = id;
    }
    
    @Column(name="stok", precision=12)
    public BigDecimal getStok() {
        return this.stok;
    }
    
    public void setStok(BigDecimal stok) {
        this.stok = stok;
    }


}


